package com.xinhuo.dao;

import com.xinhuo.domain.po.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * author 张新林
 * 时间 2019/4/3 23:15
 * 描述
 */
public interface UserDao extends JpaRepository<User,Integer> {
    List<User> findByUsernameLike(String username, Pageable pageable);


    User findByUsername(String username);

    int countByUsernameLike(String username);
}
